package cn.com.huak.www.sell.exception;

import cn.com.huak.www.sell.enums.ResultEnum;

/**
 * @author huak@wanggang
 * @date 2018/12/31 16:43
 */
public class OrderException extends RuntimeException {

    /* 异常错误码 */
    private Integer code;

    public OrderException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public OrderException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
